package types

import "time"

type PageStrct struct {
	Page int `json:"page" form:"page" binding:"required"`
	Size int `json:"size" form:"size" binding:"required"`
}

type BaseModel struct {
	Id         int       `gorm:"primary_key,autoIncrement;comment:全局id;" json:"-"`
	UpdateTime time.Time `json:"updateTime" gorm:"autoUpdateTime;comment:更新时间;"`
	CreateTime time.Time `json:"createTime" gorm:"autoCreateTime;comment:创建时间;"`
	IsDel      int       `json:"-" gorm:"default:0;comment:是否删除 0-未删除  1-已删除;"`
	DeleTime   time.Time `gorm:"index;comment:删除时间;" json:"-"`
}

type DellStruct struct {
	UuIds string `json:"uuIds" form:"uuIds" binding:"required"`
}
